home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig09_11.jar
/
Ch09
/
Fig09_11
/
Base1.h
next >
Wrap
C/C++ Source or Header
|
1997-08-25
|
302b
|
16 lines
// Fig. 9.11: base1.h
// Definition of class Base1
#ifndef BASE1_H
#define BASE1_H
class Base1 {
public:
Base1( int x ) { value = x; }
int getData() const { return value; }
protected: // accessible to derived classes
int value; // inherited by derived class
};
#endif